package com.example.myproject.redis.redission.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class RedissionConfiguration {

    @Value("${lock.redis.waitTimeOfInitEs:10}")
    private Long waitTimeOfInitEs;

    @Value("${lock.redis.releaseTimeOfInitEs:10}")
    private Long releaseTimeOfInitEs;

    public Long getWaitTimeOfInitEs() {
        return waitTimeOfInitEs;
    }

    public void setWaitTimeOfInitEs(Long waitTimeOfInitEs) {
        this.waitTimeOfInitEs = waitTimeOfInitEs;
    }

    public Long getReleaseTimeOfInitEs() {
        return releaseTimeOfInitEs;
    }

    public void setReleaseTimeOfInitEs(Long releaseTimeOfInitEs) {
        this.releaseTimeOfInitEs = releaseTimeOfInitEs;
    }
}